package com.baseframe.sys.entity;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * @author Chenjia ghoulbfo@gmail.com
 * @date 2018/4/10 16:02
 */
@Entity
@Table(name = "Frame_Module")
public class FrameModule implements Serializable {
    private static final long serialVersionUID = 6991739804555923153L;

    @Id
    private String moduleguid;
    private String modulename;
    private String parentguid;
    private String modulecode;
    private String moduleurl;
    private Integer isdisable;
    private Integer isblank;
    private String iconaddress;
    private Integer ordernumber;
    private String perms;
    private int moduletype;
    private Date createTime;
    private Date updateTime;
    @Transient
    private List<?> list;
    /**
     * 父菜单名称
     */
    @Transient
    private String parentName;
    /**
     * ztree属性
     */
    @Transient
    private Boolean open;

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public String getModuleguid() {
        return moduleguid;
    }

    public void setModuleguid(String moduleguid) {
        this.moduleguid = moduleguid;
    }

    public String getModulename() {
        return modulename;
    }

    public void setModulename(String modulename) {
        this.modulename = modulename;
    }

    public String getParentguid() {
        return parentguid;
    }

    public void setParentguid(String parentguid) {
        this.parentguid = parentguid;
    }

    public String getModulecode() {
        return modulecode;
    }

    public void setModulecode(String modulecode) {
        this.modulecode = modulecode;
    }

    public String getModuleurl() {
        return moduleurl;
    }

    public void setModuleurl(String moduleurl) {
        this.moduleurl = moduleurl;
    }

    public Integer getIsdisable() {
        return isdisable;
    }

    public void setIsdisable(Integer isdisable) {
        this.isdisable = isdisable;
    }

    public Integer getIsblank() {
        return isblank;
    }

    public void setIsblank(Integer isblank) {
        this.isblank = isblank;
    }

    public String getIconaddress() {
        return iconaddress;
    }

    public void setIconaddress(String iconaddress) {
        this.iconaddress = iconaddress;
    }

    public Integer getOrdernumber() {
        return ordernumber;
    }

    public void setOrdernumber(Integer ordernumber) {
        this.ordernumber = ordernumber;
    }

    public String getPerms() {
        return perms;
    }

    public void setPerms(String perms) {
        this.perms = perms;
    }

    public int getModuletype() {
        return moduletype;
    }

    public void setModuletype(int moduletype) {
        this.moduletype = moduletype;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public List<?> getList() {
        return list;
    }

    public void setList(List<?> list) {
        this.list = list;
    }

    public String getParentName() {
        return parentName;
    }

    public void setParentName(String parentName) {
        this.parentName = parentName;
    }

    public Boolean getOpen() {
        return open;
    }

    public void setOpen(Boolean open) {
        this.open = open;
    }
}
